
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<script type="text/javascript">
	function demandReleaseApplyHandle(flag){
		if(flag==1){
			if($("#remark").val()=='' || $("#remark").val()==null){
				$(this).alertmsg('info', '不同意请填写处理意见', {displayMode:'slide', displayPosition:'topcenter', okName:'确定', title:'提示'})
				return false;
			}
		}
		$("#handleResult").val(flag);
		$("#demandForm").submit();
	}
</script>
<div class="bjui-pageContent">
	<form id="demandForm" action="${ctx}/bus/userDemand/saveCheckDemand"
	class="ajaxForm" data-toggle="validate" >
	<input type="hidden" name="handleResult" id="handleResult" > 
	<input type="hidden" name="id"  value="${userDemand.id}"> 
	<table class="table table-bordered table-hover table-striped table-top">
		<thead>
			<tr>
				<td class="pass_width_ave_5_column">去程出发机场:</td>
				<td class="pass_width_ave_5_column">去程到达机场:</td>
				<td class="pass_width_ave_5_column">返程出发机场:</td>
				<td class="pass_width_ave_5_column">返程到达机场:</td>
				<td class="pass_width_ave_5_column">商品类型:</td>
				<td class="pass_width_ave_5_column">航程类型:</td>
			</tr>
			
		</thead>
		<tbody>
			<tr>
				<td class="pass_width_ave_5_column">${userDemand.goStartAirportChName}</td>
				<td class="pass_width_ave_5_column">${userDemand.goArrivedAirportChName}</td>
				<td class="pass_width_ave_5_column">${userDemand.returnStartAirportChName}</td>
				<td class="pass_width_ave_5_column">${userDemand.returnArrivedAirportChName}</td>
				<td class="pass_width_ave_5_column">${userDemand.goodsTypeName}</td>
				<td class="pass_width_ave_5_column">${userDemand.flightTypeName}</td>
			</tr>
		</tbody>
		<thead>
			<tr>
				<td class="pass_width_ave_5_column">出行天数:</td>
				<td class="pass_width_ave_5_column">需求截止日期:</td>
				<td class="pass_width_ave_5_column">出行天数:</td>
				<td class="pass_width_ave_5_column">成人数量:</td>
				<td class="pass_width_ave_5_column">儿童数量:</td>
				<td class="pass_width_ave_5_column">婴儿数量:</td>
			</tr>
			
		</thead>
		<tbody>
			<tr>
				<td class="pass_width_ave_5_column">${userDemand.tripDays}</td>
				<td class="pass_width_ave_5_column"><fmt:formatDate type="both" pattern="yyyy-MM-dd HH:mm:ss" value="${userDemand.demandCloseTime}" /></td>
				<td class="pass_width_ave_5_column">${userDemand.tripDays}</td>
				<td class="pass_width_ave_5_column">${userDemand.adultAmount}</td>
				<td class="pass_width_ave_5_column">${userDemand.childrenAmount}</td>
				<td class="pass_width_ave_5_column">${userDemand.babyAmount}</td>
			</tr>
		</tbody>
		<thead>
			<tr>
				<td class="pass_width_ave_5_column">去程开始时间:</td>
				<td class="pass_width_ave_5_column">去程结束时间:</td>
				<td class="pass_width_ave_5_column">返程开始时间:</td>
				<td class="pass_width_ave_5_column">返程开始时间:</td>
			</tr>
			
		</thead>
		<tbody>
			<tr>
				<td class="pass_width_ave_5_column"><fmt:formatDate type="both" pattern="yyyy-MM-dd" value="${userDemand.goStartTime}" /></td>
				<td class="pass_width_ave_5_column"><fmt:formatDate type="both" pattern="yyyy-MM-dd" value="${userDemand.goEndTime}" /></td>
				<td class="pass_width_ave_5_column"><fmt:formatDate type="both" pattern="yyyy-MM-dd" value="${userDemand.returnStartTime}" /></td>
				<td class="pass_width_ave_5_column"><fmt:formatDate type="both" pattern="yyyy-MM-dd" value="${userDemand.returnEndTime}" /></td>
			</tr>
		</tbody>
			<tr style="height: 30px;">
				<td colspan="6"><label for="name" class="control-label x90">处理意见：</label>
					<textarea name="remark" id="remark"  rows="6" cols="62"></textarea>
				</td>
			</tr>
	</table>
	</form>
	<div style="text-align:center">
		<button class="btn-default" style="margin:10px 5px 15px 20px;" onclick="demandReleaseApplyHandle(0)" type="button" class="btn-default" data-icon="save">同意 </button>  
		<button class="btn-default"  style="margin:10px 5px 15px 20px;" onclick="demandReleaseApplyHandle(1)">不同意</button>
	</div>
</div>
<div class="bjui-pageFooter">
	<ul>
		<li><button type="button" class="btn-close" data-icon="close">关闭</button></li>
	</ul>
</div>